package com.caesar.Abnormal;

/**
 * @author caesar
 * @date 2025/7/14
 * @Description:实现新年倒计时10,9,8，...，1，新年到！
 * @apiNote
 */
public class TestTryCatch {
    public static void main(String[] args) {
        for (int i = 10; i >=1 ; i--) {
            System.out.println(i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("新年到！");
    }
}
